// MappingData.cpp: implementation of the CMappingData class.
//
//////////////////////////////////////////////////////////////////////
#include "stdafx.h"
#include "CMappingData.h"

#ifdef _DEBUG
#undef THIS_FILE
static char THIS_FILE[]=__FILE__;
#define new DEBUG_NEW
#endif

//////////////////////////////////////////////////////////////////////
// Construction/Destruction
//////////////////////////////////////////////////////////////////////
CMappingData::CMappingData(CString strFileName) : CFileManager(strFileName)
{

	m_nMappingCount = 0;
	m_nWaferCount = 0;
	m_nWaferStartPoint = 0;
	m_nMappingData[SLOT_NO] = 0;
	m_nWorkPos[SLOT_NO][WORK_POS] = 0;
	m_nWaferSele = FALSE;
	Datainit();
}
CMappingData::~CMappingData()
{
	
}

void CMappingData::Datainit()
{
	for(int i = 0; i < SLOT_NO ; i ++)
	{
		m_nMappingData[i]= 0;
		for(int j = 0; j < WORK_POS ; j ++)
		{
			m_nWorkPos[i][j]= 0;
		}
	}

}
void CMappingData::SetMappingCount(int iCount)
{
	CString strItem;
	CString strDescription;
	m_nMappingCount = iCount;
	strItem.Format("%d", iCount);

	SetValue("MappingData", "Count", iCount);
}

int  CMappingData::GetMappingCount()
{
	GetValue("MappingData", "Count", &m_nMappingCount);
	return m_nMappingCount; 
}